From d3271964f89bc9ac08431b3066ddec4b10ebae95 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Wed, 31 Aug 2005 13:55:54 +0000 Subject: [PATCH] vertical bar was a bad choice for an option separator for an1; DeLorme uses them in street names. --- gpsbabel/README | 2 +- gpsbabel/an1.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gpsbabel/README b/gpsbabel/README index ab81b3bfd..c6c57083f 100644 --- a/gpsbabel/README +++ b/gpsbabel/README @@ -927,7 +927,7 @@ THE FORMATS types are "limited", "toll", "us", "state", "major", and "local". This option has a special format that is best demonstrated by example: - "type=limited|I-599|major|Beecher St." + "type=limited!I-599!major!Beecher St." This option will cause any road named "I-599" to become a limited- access highway and any road named "Beecher St." to become a major diff --git a/gpsbabel/an1.c b/gpsbabel/an1.c index 0c3e3ff0a..18b185e42 100644 --- a/gpsbabel/an1.c +++ b/gpsbabel/an1.c @@ -911,10 +911,10 @@ Init_Road_Changes( void ) if ( !road_changes || !road_changes[0] ) { return; } - bar = strchr( road_changes, '|' ); + bar = strchr( road_changes, '!' ); while ( bar ) { count++; - bar = strchr( bar+1, '|' ); + bar = strchr( bar+1, '!' ); } if ( !(count&1)) { fatal( MYNAME ": invalid format for road changes\n" ); @@ -931,11 +931,11 @@ Init_Road_Changes( void ) while ( count ) { count--; name = bar; - bar = strchr( name, '|' ); + bar = strchr( name, '!' ); *bar = '\0'; bar++; strType = bar; - bar = strchr( strType, '|' ); + bar = strchr( strType, '!' ); if ( bar ) { *bar = '\0'; bar++; -- 2.30.2